import request from "../utils/request";

//发送手机验证码
export const reqGetCode = (phone) => {
	return request({
		method: "GET",
		url: `/user/passport/sendCode/${phone}`
	});
};

//定义注册用户的接口
export const reqRegister = (data) => {
	return request({
		method: "POST",
		url: "/user/passport/register",
		data
	});
};

//登录的接口
export const reqLogin = (data) => {
	return request({
		method: "POST",
		url: "/user/passport/login",
		data
	});
};

//登出接口
export const reqLogout = () => {
	return request({
		method: "GET",
		url: "/user/passport/logout"
	});
};
